const constRouterMap = [
    {
        path: "/auth",
        name: "auth",
        component: () => import("@/pages/Auth/auth"),
        redirect: {name:'login'},
        children: [{
            path: "login",
            name: "login",
            component: () => import("@/pages/Auth/user-login/login")
        },{
            path: "register",
            name:"register",
            component: () => import("@/pages/Auth/user-register/register")
        },{
            path: "reset",
            name:"reset",
            component:() => import("@/pages/Auth/user-pwd-reset/reset")
        }]
    },
    {
      path:"/",
        name: 'main',
      component:() => import("@/pages/main/main")
    },
    {
        path: "/404",
        component: () => import("@/pages/Error/404")
    },
    {
        path: "/topic",
        component: () => import("@/pages/topic/topic")
    },
    {
      path: "/edit",
        component:() => import("@/pages/edit/edit")
    },
    {
      path: "/detail/:id",
      name: 'detail',
      component:() => import("@/pages/main/blogDetail")
    },
    {
        path: "*",
        redirect: "/"
     }
];
export default constRouterMap;
